#ifndef _STAIR_H_
#define _STAIR_H_

#include "cpsystem.h"

#define STAIRS_TOTAL_HEIGHT		100
#define STAIRS_WIDTH			90
#define STAIR_HEIGHT			10
#define STAIR_LENGTH			15

class CStair : public CPSystem
{
protected:
	eTextures m_texture;	// Stair texture

	void AddFlatFace(float y, float x1, float z1,
		float x2, float z2);

public:
	CStair(float x, float y, float z, float w, float l,
		eTextures texture = texStair);
	~CStair();

	void Influence(CPSystem* p);
	void Action(CPSystem* p);
	void Reaction(float t);
	void Draw();
	void DrawShadow(GLfloat shadowMat[4][4]);
};

#endif